package org.jeecg.modules.demo.projectroom.service;

import org.jeecg.modules.demo.projectroom.entity.ZnzfProjectProvince;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * @Description: 项目表省份-站段-地市联动控件
 * @Author: jeecg-boot
 * @Date:   2022-04-10
 * @Version: V1.0
 */
public interface IZnzfProjectProvinceService extends IService<ZnzfProjectProvince> {

    /**
     * 根据pid获取所有子节点
     * @param pid
     * @return
     */
    List<ZnzfProjectProvince> getChildrenByPid(String pid);

    /**
     * 根据名称查对象
     * @param name
     * @return
     */
    ZnzfProjectProvince getItemByName(String name);
}
